#pragma once
#pragma comment(lib, "ws2_32.lib")
#include <string>
#include <mutex>
#include <WinSock2.h>
#include <iostream>
#include "chatMsg.h"
#define _WINSOCK_DEPRECATED_NO_WARNINGS
class TcpSvr
{
private:
	TcpSvr();
	TcpSvr(const TcpSvr& ts);
public:
	static TcpSvr* GetInstance();
	int Send(std::string& msg);
	int Recv(std::string& msg);
	int GetSockfd();
private:
	int ConnectToSvr();
	static TcpSvr* instance_;
	SOCKET sockfd_;
};
